<script setup lang="ts">
import { useStore } from 'vuex';



  let store = useStore()
  const getWidth = ()=>{
    let width = document.body.clientWidth
    if(width>750){
      store.commit('getisPc',true)
      document.documentElement.style.fontSize='16px'
    }else{
      store.commit('getisPc',false)
      document.documentElement.style.fontSize = width/750*16+'px'
    }
  }
getWidth()


window.addEventListener('resize', () => {
	getWidth()
});

</script>

<template>
  <!-- <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" v-if="$route.meta.keepAlive" />
    </keep-alive>
    <component :is="Component" v-if="!$route.meta.keepAlive" />
  </router-view> -->
  <router-view ></router-view>
  
</template>

<style>
#app {
  /* font-family: MiSans,serif; */
}
</style>
